<%@ Page Language="vb" AutoEventWireup="false" Codebehind="TestTemplate.aspx.vb" Inherits="WebSite.TestTemplate" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>TestTemplate</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
	<script src="dateedit/dateedit.js"></script>
  </head>
  <body MS_POSITIONING="GridLayout">

    <form id="Form1" method="post" runat="server">
    </form>
		<script language="javascript">
			function fnBisiesto(Y,M){
				var cantidad;
				if ((M==1) ||(M==3) ||(M==5) ||(M==7) ||(M==8) || (M==10) || (M==12)){
					cantidad=31;
				 } else {
					if (M==2) {
						if (IsBisiesto(Y)) {
							cantidad = 29;
						} else {
							cantidad = 28;
						}
					} else { cantidad = 30;	}
				 }
				 return(cantidad);
			}				
				
			function IsBisiesto (fin) {
				if (fin % 4 != 0)
				    return false;
				else {
				    if (fin % 100 == 0) {
				        if (fin % 400 == 0) {
				            return true;
				        } else {return false;  }
				    } else { return true; }
				}
			}	
			
		</script>

  </body>
</html>
